package eteam.aps.systemservice.dal.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import eteam.aps.systeminterface.model.entity.OnlineUserEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface IOnlineUserMapper extends BaseMapper<OnlineUserEntity> {
    @Select("select t1.*,t2.FUserName,t2.FFullName from sp_onlineuser t1 left join sp_user t2 on t1.FUserId=t2.FUserId ${ew.customSqlSegment}")
    IPage<OnlineUserEntity> selectOnlineUserPage(IPage<OnlineUserEntity> page, @Param(Constants.WRAPPER) Wrapper wrapper);
}
